package com.jxc.controller;

import com.jxc.pojo.GoodsType;
import com.jxc.service.GoodsTypeService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RequestMapping("/admin/goodsType")
@RestController
public class GoodsTypeController {

    @Resource
    private GoodsTypeService goodsTypeService;
    @RequestMapping("/loadTreeInfo")
    public List<GoodsType> fingGoodType(){
        List<GoodsType> goodsTypes = goodsTypeService.selectByExample(-1);
        System.out.println(goodsTypes);
        return goodsTypes;
    }

}
